package com.study.thread;

public class Thread2 implements Runnable{
    @Override
    public synchronized void run() {
        try {
            System.out.println("run2...");
            Thread.sleep(1000);
            wait();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    public static void main(String[] args) {
        Thread thread = new Thread(new Thread2());
        thread.start();
    }
}
